/**
 * 找到提供的句子中最长的单词
 * @param str
 * @returns {number}
 * string.split()
 */
function findLongestWord(str) {
    // 请把你的代码写在这里
    var a = str.split(' ');
    var long = 0;

    for(var i = 0; i<a.length; i++){
        if(a[i].length>long){
            long = a[i].length;
            // console.log(long)        
        }
    }

    return long;
}

findLongestWord("The quick brown fox jumped over the lazy dog");
console.log(findLongestWord("The quick brown fox jumped over the lazy dog"));

